registerTests([
function Last_Test_0()
{
	var myArray = [1, 2, 3];
	var result = myArray.Last();
	
	Assert.areEqual(result, 3);
},
function Last_Test_1()
{
	var myArray = [];

	Assert.throwsException(myArray.Last);
},
function Last_Test_Condition_0()
{
	var myArray = [1, 2, 3];
	var result = myArray.Last("x=> x == 2");
	
	Assert.areEqual(result, 2);
},
function Last_Test_Condition_1()
{
	var myArray = [];

	Assert.throwsException(function() { myArray.Last("x => x == 2");});
}
]);